// SubDlgSystemSet.cpp : implementation file
//

#include "stdafx.h"
#include "HS-PCI-Monitor.h"
#include "SubDlgSystemSet.h"


// CSubDlgSystemSet dialog

IMPLEMENT_DYNAMIC(CSubDlgSystemSet, CDialog)

CSubDlgSystemSet::CSubDlgSystemSet(CWnd* pParent /*=NULL*/)
//	: CDialog(CSubDlgSystemSet::IDD, pParent)
{

}

CSubDlgSystemSet::CSubDlgSystemSet(UINT nID, CWnd *pParent /*=NULL*/)
: CDialog(nID)
{
	m_id = nID;
}

CSubDlgSystemSet::~CSubDlgSystemSet()
{
}

void CSubDlgSystemSet::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CSubDlgSystemSet, CDialog)
END_MESSAGE_MAP()


// CSubDlgSystemSet message handlers

BOOL CSubDlgSystemSet::PreTranslateMessage(MSG* pMsg)
{
	// TODO: Add your specialized code here and/or call the base class
/*	int nId = ::GetDlgCtrlID(pMsg->hwnd); 

	if(pMsg->message == WM_LBUTTONDOWN)
	{
		int i =11;
	}

	if ((pMsg->message == WM_KEYDOWN) && (pMsg->wParam == VK_ESCAPE))
	{
		return TRUE;
	}

	// Don't let CDialog process the Return key, if a multi-line edit has focus
	if ((pMsg->message == WM_KEYDOWN) && (pMsg->wParam == VK_RETURN))
	{
		// Special case: if control with focus is an edit control with
		// ES_WANTRETURN style, let it handle the Return key.

		TCHAR szClass[10];
		CWnd* pWndFocus = GetFocus();
		if (((pWndFocus = GetFocus()) != NULL) &&
			IsChild(pWndFocus) &&
			(pWndFocus->GetStyle() & ES_WANTRETURN) &&
			GetClassName(pWndFocus->m_hWnd, szClass, 10) &&
			(lstrcmpi(szClass, _T("EDIT")) == 0))
		{
			pWndFocus->SendMessage(WM_CHAR, pMsg->wParam, pMsg->lParam);
			return TRUE;
		}

		return FALSE;
	}*/

	return CDialog::PreTranslateMessage(pMsg);
}

void CSubDlgSystemSet::OnOK()
{
	// TODO: Add your specialized code here and/or call the base class

	EndDialog(IDOK);
}

void CSubDlgSystemSet::OnCancel()
{
	// TODO: Add your specialized code here and/or call the base class

	EndDialog(IDCANCEL);
}
